'use strict';

const conn = require('../../libs/Conn');
const util = require('../../libs/Utils');

module.exports = async function (params) {
    let updateObj = {
        structure_name:params.structure_name,
        enable:params.enable,
    };
    let sql = 'UPDATE structure_file SET ? WHERE structure_id = ?;';
    await conn(sql, [updateObj,params.structure_id]);
    return {success: true};
};